//
//  ChivoxEngineListener.h
//  ChivoxEngine
//
//  Created by John on 2018/8/28.
//  Copyright © 2018年 Chivox. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol ChivoxEngineListener <NSObject>

@required
- (void)onInitSuccess:(id)engine;

- (void)onInitFail:(id)engine errId:(int)errId errMsg:(NSString *)errMsg;

- (void)onStartSuccess:(id)engine token:(NSString *)token;

- (void)onStartFail:(id)engine errId:(int)errId errMsg:(NSString *)errMsg;

//- (void)onFeedFail:(id)engine token:(NSString *)token errId:(int)errId errMsg:(NSString *)errMsg;

//- (void)onStopSucess:(id)engine token:(NSString *)token;

//- (void)onStopFail:(id)engine token:(NSString *)token errId:(int)errId errMsg:(NSString *)errMsg;

- (void)onResult:(id)engine token:(NSString *)token text:(NSString *)text;

- (void)onResult:(id)engine token:(NSString *)token bin:(NSData *)text;

@end
